@model LynxWebLog.CategoryData

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm("Edit", "CategoryData", FormMethod.Post, new { @role="form" })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="form-group">
        <legend>CategoryData</legend>

        <div class="container">
            <div class="row">
                <div class="col-sm-2 col-md-2 col-lg-2">
                    <div class="form-group">
                        @Html.LabelFor(model => model.categoryid, new { @class = "control-label" })
                            <div class="controls">
                                @Html.TextBoxFor(model => model.categoryid, new { @class = "form-control input-sm", disabled = "disabled" })
                                    @Html.ValidationMessageFor(model => model.categoryid, null, new { @class = "help-inline" })
                                    </div>
                                    @Html.HiddenFor(model => model.categoryid, new { value = "0" })
                                    </div>
                                </div>
                                <div class="col-sm-offset-1 col-md-offset-1 col-lg-offset-1 col-sm-3 col-md-3 col-lg-3">
                                    <div class="form-group">
                                        @Html.LabelFor(model => model.username, new { @class = "control-label" })
                                            <div class="controls">
                                                @Html.TextBoxFor(model => model.username, new { @class = "form-control input-sm", disabled = "disabled" })
                                                    @Html.ValidationMessageFor(model => model.username, null, new { @class = "help-inline" })
                                                    </div>
                                        @Html.HiddenFor(model => model.username)
                                                </div>
                                            </div>
                                            <div class="col-sm-offset-1 col-md-offset-1 col-lg-offset-1 col-sm-5 col-md-5 col-lg-5">
                                                <div class="form-group">
                                                    @Html.LabelFor(model => model.title, new { @class = "control-label" })
                                                        <div class="controls">
                                                            @Html.TextBoxFor(model => model.title, new { @class = "form-control input-sm", disabled = "disabled" })
                                                                @Html.ValidationMessageFor(model => model.title, null, new { @class = "help-inline" })
                                                                </div>
                                                    @Html.HiddenFor(model => model.title)
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="form-group">
                                                            @Html.LabelFor(model => model.description, new { @class = "control-label" })
                                                                <div class="controls">
                                                                    @Html.TextAreaFor(model => model.description, new { @class = "form-control input-sm" })
                                                                        @Html.ValidationMessageFor(model => model.description, null, new { @class = "help-inline" })
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="form-group">
                                                                        @Html.LabelFor(model => model.htmlUrl, new { @class = "control-label" })
                                                                            <div class="controls">
                                                                                @Html.TextBoxFor(model => model.htmlUrl, new { @class = "form-control input-sm" })
                                                                                    @Html.ValidationMessageFor(model => model.htmlUrl, null, new { @class = "help-inline" })
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="row">
                                                                                <div class="form-group">
                                                                                    @Html.LabelFor(model => model.rssUrl, new { @class = "control-label" })
                                                                                        <div class="controls">
                                                                                            @Html.TextBoxFor(model => model.rssUrl, new { @class = "form-control input-sm" })
                                                                                                @Html.ValidationMessageFor(model => model.rssUrl, null, new { @class = "help-inline" })
                                                                                                </div>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
        <div class="form-actions">
            <input type="submit" value="Save" class="btn btn-default btn-primary" />
        </div>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

